package com.zhangshuo.patternDesign.bridge;

/**
 * Created by shuo.zhang on 2017-10-25.
 */
public abstract class Soul {

    private ISkill skill;
    private IAppearance appearance;

    protected Soul(IAppearance appearance, ISkill skill){
        this.skill = skill;
        this.appearance = appearance;
    }

    protected Soul(){

    }

    /**
     * 展示
     */
    public void show(){
        appearance.show();
    }


    /**
     * 技能
     */
    public void releaseSkill(){
        skill.releaseSkill();
    }

}
